<?php

	class Home{
		private $template;
		private $content;
		
		// This function gets loaded before the action gets loaded.
		public function load(){
			$this->template = new View();
			$this->template->setFile('template.phtml');
			$this->template->content = new View();
			$this->content =& $this->template->content;
			$this->template->title = 'test';
		}
	
		public function index(){
			$this->content->setFile('home/index.phtml');
			$this->content->message = 'hello world';
		}
		
		public function unload(){
			$this->template->display();
		}
	}

?>